package cn.wolfcode.trip.base.service;

import cn.wolfcode.trip.base.domain.DailyNewsComment;
import cn.wolfcode.trip.base.query.DailyNewsCommentQuery;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface IDailyNewsCommentService {

    void deleteByPrimaryKey(Long id);

    void insert(DailyNewsComment record);

    DailyNewsComment selectByPrimaryKey(Long id);

    List<DailyNewsComment> selectAll();

    void updateByPrimaryKey(DailyNewsComment record);

    PageInfo<DailyNewsComment> selectForComment(DailyNewsCommentQuery qo); //根据日报查询评论

    Integer selectByNewsId(Long news_id);

    PageInfo selectByUserId(DailyNewsCommentQuery qo);
}
